package pers.liyan.shi.springclouddistributedlocker.zookeeper;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * zk配置类
 * @author ShiLY
 * @version 1.0
 * @date 2020/2/23 13:21
 */
@Data
@ConfigurationProperties(prefix = "spring.zk")
public class ZooKeeperProperties {

    /**
     * 连接host,port
     */
    private String connectString;

    /**
     * 回话超时时间
     */
    private int sessionTimeoutMs;

    /**
     * 连接超时时间
     */
    private int connectionTimeoutMs;

    /**
     * 开始重试的等待时间
     */
    private int baseSleepTimeMs;

    /**
     * 最大重试次数
     */
    private int maxRetries;

}
